//全局vuex 数据模块
const state = {
  //侧边菜单展开收起
  collapse: false,
}

const getters = {}
//同步方法
const mutations = {
  //collapse 数据取反
  TOGGLE_COLLAPSE(state) {
    state.collapse = !state.collapse
  },
  //修改collase
  SET_COLLAPSE(state, flag) {
    state.collapse = flag
  },
}
const actions = {}

export default {
  //命名空间
  namespaced: true,
  state,
  getters,
  mutations,
  actions,
}
